<template>
  <div>
    <div class="main">
      <div class="top">
        <div class="top-left">
          <p class="photo"><img src="../../../../public/00004.png" alt="" /></p>
          <p class="pirce">￥{{ pirce }}</p>
        </div>
        <div class="top-right">
          <p class="activity-top">{{ text | sub }}</p>
          <p class="activity-bottom">{{ Full_minus }}</p>
        </div>
      </div>
      <div class="bottom">{{ bottom_text }}</div>
    </div>
  </div>
</template>

<script>
export default {
  props: ["pirce", "text", "Full_minus", "bottom_text"],
  filters: {
    sub(val) {
      return val.substring(0, 5) + "...";
    },
  },
};
</script>

<style scoped>
.main {
  width: 2.5rem;
  height: 1.15rem;
  background-image: url("../../../../public/00003.png");
  background-repeat: no-repeat;
  background-size: 100%;
  margin-left: 00.3rem;
}
.top {
  display: flex;
  justify-content: space-between;
}
.photo img {
  width: 0.8rem;
  height: 0.3rem;
}
.pirce {
  text-align: center;
  color: #be865d;
  font-size: 0.3rem;
  font-weight: bold;
}
.top-right {
  padding-top: 0.13rem;
}
.activity-top {
  color: #be865d;
  font-weight: bold;
}
.activity-bottom {
  color: #be865d;
}
.bottom {
  color: #be865d;
  text-align: center;
  line-height: 0.45rem;
}
</style>